package com.bdqn.oa.entity;


import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 考勤
 *
 * @author zhouxw
 */
public class Attendance {
    /**
     * id
     */
    private Integer id;
    /**
     * 日期
     */
    private LocalDateTime date;
    /**
     * 员工id
     */
    private Integer employeeId;
    /**
     * 打卡类型 1.正常 2.外勤
     */
    private Integer type;
    /**
     * 上班时间
     */
    private LocalDateTime startTime;
    /**
     * 下班时间
     */
    private LocalDateTime endTime;
    /**
     * 工作时长,下班打卡时更新, 小时计(保留小数点后两位)
     */
    private Double totalTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public LocalDateTime getDate() {
        return date;
    }

    public void setDate(LocalDateTime date) {
        this.date = date;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployee_Id(Integer employeeId) {
        this.employeeId = employeeId;
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }


    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStart_Time(LocalDateTime startTime) {
        this.startTime = startTime;
    }


    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEnd_Time(LocalDateTime endTime) {
        this.endTime = endTime;
    }


    public Double getTotalTime() {
        return totalTime;
    }

    public void setTotal_Time(Double totalTime) {
        this.totalTime = totalTime;
    }

    @Override
    public String toString() {
        return "Attendance{" +
                "id=" + id +
                ", date=" + date +
                ", employeeId=" + employeeId +
                ", type=" + type +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", totalTime=" + totalTime +
                '}';
    }
}
